package Epic;

/**
 * Write a software to print triangle made of *s. 
 * Given the height and width of Triangles in terms of number of stars. like to output 
 			* 
 			* * 
 			* * * 
 * @author Ray
 *
 */
public class PrintStar {
	
	public static void print(int line){
		StringBuilder sb = new StringBuilder();
		for(int i=0;i<line;++i){
			sb.append("*");
			System.out.println(sb.toString());
		}
	}
	
	public static void printTriangle(int h, int w){
		for(int i=1;i<=h;++i){
			for(int j=0;j<(i*(w/h));++j){
				System.out.print("*");
			}
			System.out.println();
		}
	}

	public static void main(String[] args) {
		// TODO Auto-generated method stub
//		printTriangle(3, 3);
		print(3);
	}

}
